package Test_1026;

import java.util.List;

/**
 * Created with Intellij IDEA
 * Description:
 * User: 星辰
 * Dare: 2024-10-26
 * Time: 13:40
 */
//数据结构：
  /*  1.抽象
    2.逻辑严谨*/
public class Test_1026 {

    public static void main1(String[] args) {
        MyArrayList myArrayList=new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(5);
        myArrayList.add(3,7);
        System.out.println(myArrayList.get(3));
        myArrayList.display();
    }
    public static void main(String[] args) {
        MyArrayList myArrayList=new MyArrayList();
        IList list=new MyArrayList();
        System.out.println(list.size());
        System.out.println(myArrayList.size());
        list.display();
        myArrayList.display();
    }


}
